import request from "@/utils/request";

export function listFlow(query){
  return request({
    url:'/contract/ice-flow/list',
    params:query,
  })
}

export function saveFlow(data){
  return request({
    url:'/contract/ice-flow/save',
    method:'post',
    data:data
  })
}

export function getFlowById(query){
  return request({
    url:'/contract/ice-flow/getOne/'+query,
  })
}

export function delFlow(query){
  return request({
    url:'/contract/ice-flow/delete/'+query,
    method:'delete'
  })
}

export function updateFlow(data){
  return request({
    url:'/contract/ice-flow/update',
    method:'put',
    data:data
  })
}

export function labelFlow(){
  return request({
    url:'/contract/ice-flow/label',
  })
}
